<!-- 需求详情页 -->
<div class="space-y-6">
    <!-- 页面头部 -->
    <div class="flex items-center justify-between">
        <div class="flex items-center gap-4">
            <button onclick="history.back()" class="text-gray-600 hover:text-gray-800">
                <i class="fas fa-arrow-left text-xl"></i>
            </button>
            <h2 class="text-2xl font-bold text-gray-800">需求详情</h2>
        </div>
        <div class="flex gap-3">
            <button class="px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition">
                <i class="fas fa-edit mr-2"></i>编辑
            </button>
            <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
                <i class="fas fa-plus mr-2"></i>添加进度
            </button>
        </div>
    </div>

    <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
        <!-- 左侧主要内容区 -->
        <div class="lg:col-span-2 space-y-6">
            <!-- 需求基本信息 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <div class="flex items-start justify-between mb-4">
                    <div class="flex-1">
                        <h3 class="text-2xl font-bold text-gray-800 mb-3">移动端APP开发</h3>
                        <div class="flex items-center gap-2 mb-4">
                            <span class="px-3 py-1 bg-blue-100 text-blue-800 text-sm font-medium rounded-full">处理中</span>
                            <span class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full">功能开发</span>
                            <span class="px-3 py-1 bg-red-100 text-red-800 text-sm rounded-full">高优先级</span>
                        </div>
                    </div>
                </div>
                
                <div class="border-t border-gray-200 pt-4">
                    <h4 class="text-lg font-semibold text-gray-800 mb-3">需求描述</h4>
                    <p class="text-gray-700 leading-relaxed mb-4">
                        需要开发一款电商类移动应用，包含商品浏览、购物车、订单管理、支付等功能。希望界面简洁美观，操作流畅，支持iOS和Android双平台。预计开发周期3个月。
                    </p>
                    
                    <div class="grid grid-cols-2 gap-4 mt-4">
                        <div>
                            <span class="text-sm text-gray-500">提交时间</span>
                            <p class="text-sm font-medium text-gray-800 mt-1">2024-01-15 10:30</p>
                        </div>
                        <div>
                            <span class="text-sm text-gray-500">最后更新</span>
                            <p class="text-sm font-medium text-gray-800 mt-1">2024-01-16 14:20</p>
                        </div>
                        <div>
                            <span class="text-sm text-gray-500">需求编号</span>
                            <p class="text-sm font-medium text-gray-800 mt-1">REQ-2024-0015</p>
                        </div>
                        <div>
                            <span class="text-sm text-gray-500">处理顾问</span>
                            <p class="text-sm font-medium text-gray-800 mt-1">李顾问</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 处理进度时间线 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-800">处理进度</h3>
                    <button class="text-sm text-indigo-600 hover:text-indigo-700">
                        <i class="fas fa-plus mr-1"></i>添加进度
                    </button>
                </div>
                <div class="space-y-6">
                    <!-- 进度节点1 -->
                    <div class="flex items-start">
                        <div class="flex flex-col items-center mr-4">
                            <div class="w-3 h-3 bg-green-500 rounded-full"></div>
                            <div class="w-0.5 h-16 bg-gray-200 mt-1"></div>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <h4 class="text-sm font-semibold text-gray-800">需求已提交</h4>
                                <span class="text-xs text-gray-500">2024-01-15 10:30</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">客户提交了需求，等待顾问处理</p>
                            <div class="text-xs text-gray-500">操作人：系统</div>
                        </div>
                    </div>
                    <!-- 进度节点2 -->
                    <div class="flex items-start">
                        <div class="flex flex-col items-center mr-4">
                            <div class="w-3 h-3 bg-green-500 rounded-full"></div>
                            <div class="w-0.5 h-16 bg-gray-200 mt-1"></div>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <h4 class="text-sm font-semibold text-gray-800">需求已受理</h4>
                                <span class="text-xs text-gray-500">2024-01-15 14:20</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">顾问已受理需求，开始分析需求详情</p>
                            <div class="text-xs text-gray-500">操作人：李顾问</div>
                        </div>
                    </div>
                    <!-- 进度节点3 -->
                    <div class="flex items-start">
                        <div class="flex flex-col items-center mr-4">
                            <div class="w-3 h-3 bg-blue-500 rounded-full border-2 border-white ring-2 ring-blue-500"></div>
                            <div class="w-0.5 h-16 bg-gray-200 mt-1"></div>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <h4 class="text-sm font-semibold text-gray-800">方案设计中</h4>
                                <span class="text-xs text-gray-500">2024-01-16 09:15</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">正在设计技术方案和开发计划，预计本周完成</p>
                            <div class="text-xs text-gray-500">操作人：李顾问</div>
                        </div>
                    </div>
                    <!-- 进度节点4 -->
                    <div class="flex items-start">
                        <div class="flex flex-col items-center mr-4">
                            <div class="w-3 h-3 bg-gray-300 rounded-full"></div>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <h4 class="text-sm font-semibold text-gray-500">等待报价确认</h4>
                                <span class="text-xs text-gray-400">待进行</span>
                            </div>
                            <p class="text-sm text-gray-400 mb-2">等待客户确认报价</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 沟通记录 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-800">沟通记录</h3>
                    <button class="text-sm text-indigo-600 hover:text-indigo-700">
                        <i class="fas fa-plus mr-1"></i>添加记录
                    </button>
                </div>
                <div class="space-y-4">
                    <!-- 沟通记录1 -->
                    <div class="flex items-start gap-3 pb-4 border-b border-gray-100 last:border-0 last:pb-0">
                        <div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center flex-shrink-0">
                            <i class="fas fa-user text-indigo-600"></i>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <div class="flex items-center gap-2">
                                    <span class="text-sm font-medium text-gray-800">李顾问</span>
                                    <span class="px-2 py-0.5 bg-blue-100 text-blue-600 text-xs rounded">电话沟通</span>
                                </div>
                                <span class="text-xs text-gray-500">2024-01-16 14:20</span>
                            </div>
                            <p class="text-sm text-gray-700 leading-relaxed">
                                已与客户电话沟通，确认了需求细节。客户希望优先开发核心功能，其他功能可以分阶段实现。已记录客户的具体要求。
                            </p>
                        </div>
                    </div>
                    <!-- 沟通记录2 -->
                    <div class="flex items-start gap-3 pb-4 border-b border-gray-100 last:border-0 last:pb-0">
                        <div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center flex-shrink-0">
                            <i class="fas fa-user text-gray-600"></i>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center justify-between mb-1">
                                <div class="flex items-center gap-2">
                                    <span class="text-sm font-medium text-gray-800">张三（客户）</span>
                                    <span class="px-2 py-0.5 bg-green-100 text-green-600 text-xs rounded">在线消息</span>
                                </div>
                                <span class="text-xs text-gray-500">2024-01-15 16:30</span>
                            </div>
                            <p class="text-sm text-gray-700 leading-relaxed">
                                希望能在2个月内看到初步版本，可以先上线核心功能，后续再迭代优化。
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 附件 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <h3 class="text-lg font-semibold text-gray-800 mb-4">附件</h3>
                <div class="space-y-2">
                    <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 cursor-pointer">
                        <div class="flex items-center gap-3">
                            <i class="fas fa-file-pdf text-red-500 text-xl"></i>
                            <div>
                                <p class="text-sm font-medium text-gray-800">需求文档.pdf</p>
                                <p class="text-xs text-gray-500">2.5 MB</p>
                            </div>
                        </div>
                        <div class="flex gap-2">
                            <button class="text-indigo-600 hover:text-indigo-700">
                                <i class="fas fa-download"></i>
                            </button>
                            <button class="text-red-600 hover:text-red-700">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg hover:bg-gray-100 cursor-pointer">
                        <div class="flex items-center gap-3">
                            <i class="fas fa-file-image text-blue-500 text-xl"></i>
                            <div>
                                <p class="text-sm font-medium text-gray-800">参考设计图.jpg</p>
                                <p class="text-xs text-gray-500">1.2 MB</p>
                            </div>
                        </div>
                        <div class="flex gap-2">
                            <button class="text-indigo-600 hover:text-indigo-700">
                                <i class="fas fa-download"></i>
                            </button>
                            <button class="text-red-600 hover:text-red-700">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                </div>
                <button class="mt-4 text-sm text-indigo-600 hover:text-indigo-700">
                    <i class="fas fa-plus mr-1"></i>上传附件
                </button>
            </div>
        </div>

        <!-- 右侧信息栏 -->
        <div class="space-y-6">
            <!-- 客户信息 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <h3 class="text-lg font-semibold text-gray-800 mb-4">客户信息</h3>
                <div class="flex items-center gap-3 mb-4">
                    <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-user text-indigo-600 text-xl"></i>
                    </div>
                    <div>
                        <p class="text-sm font-semibold text-gray-800">张三</p>
                        <p class="text-xs text-gray-500">客户</p>
                    </div>
                </div>
                <div class="space-y-3 border-t border-gray-200 pt-4">
                    <div>
                        <span class="text-xs text-gray-500">手机号</span>
                        <p class="text-sm font-medium text-gray-800 mt-1">138****8888</p>
                    </div>
                    <div>
                        <span class="text-xs text-gray-500">邮箱</span>
                        <p class="text-sm font-medium text-gray-800 mt-1">zhangsan@example.com</p>
                    </div>
                    <div>
                        <span class="text-xs text-gray-500">公司</span>
                        <p class="text-sm font-medium text-gray-800 mt-1">XX科技有限公司</p>
                    </div>
                </div>
                <button class="w-full mt-4 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition text-sm">
                    <i class="fas fa-comment mr-2"></i>联系客户
                </button>
            </div>

            <!-- 快速操作 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <h3 class="text-lg font-semibold text-gray-800 mb-4">快速操作</h3>
                <div class="space-y-2">
                    <button class="w-full px-4 py-3 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition text-left">
                        <i class="fas fa-tag mr-2"></i>创建报价
                    </button>
                    <button class="w-full px-4 py-3 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition text-left">
                        <i class="fas fa-file-contract mr-2"></i>上传协议
                    </button>
                    <button class="w-full px-4 py-3 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition text-left">
                        <i class="fas fa-comment-dots mr-2"></i>添加沟通记录
                    </button>
                    <button class="w-full px-4 py-3 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition text-left">
                        <i class="fas fa-sync-alt mr-2"></i>更新状态
                    </button>
                </div>
            </div>

            <!-- 相关报价 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-800">相关报价</h3>
                    <button class="text-sm text-indigo-600 hover:text-indigo-700">
                        <i class="fas fa-plus"></i>
                    </button>
                </div>
                <div class="space-y-3">
                    <div class="p-4 bg-gray-50 rounded-lg border border-gray-200 hover:border-indigo-300 cursor-pointer transition">
                        <div class="flex items-center justify-between mb-2">
                            <span class="text-xs text-gray-500">QT20240116001</span>
                            <span class="px-2 py-1 bg-yellow-100 text-yellow-600 text-xs rounded-full">待确认</span>
                        </div>
                        <p class="text-xl font-bold text-indigo-600 mb-1">¥128,000</p>
                        <p class="text-xs text-gray-500">创建于 2024-01-16</p>
                    </div>
                </div>
            </div>

            <!-- 相关协议 -->
            <div class="bg-white rounded-lg shadow-sm p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-800">相关协议</h3>
                    <button class="text-sm text-indigo-600 hover:text-indigo-700">
                        <i class="fas fa-plus"></i>
                    </button>
                </div>
                <div class="text-center text-gray-400 text-sm py-4">
                    <i class="fas fa-file-contract text-3xl mb-2 block"></i>
                    <p>暂无协议</p>
                </div>
            </div>
        </div>
    </div>
</div>

